package edu.cgpi.view;

import javax.swing.JFrame;
import javax.swing.WindowConstants;

public class GerenciadorUI {

	private static final GerenciadorUI INSTANCE = new GerenciadorUI();
	private Tela tela;
	private PainelMenu painelMenu;
	private PainelDesenho painelDesenho;
	private PainelBotoes painelBotoes;
	private PainelClipping painelClipping;
	private PainelSelecaoCor painelSelecaoCor;
	
	public GerenciadorUI() {
		
	}
	
	public static GerenciadorUI getInstance() {
		return INSTANCE;
	}

	public Tela getTela() {
		return tela;
	}

	public void setTela(Tela tela) {
		this.tela = tela;
	}

	public PainelMenu getPainelMenu() {
		return painelMenu;
	}

	public void setPainelMenu(PainelMenu painelMenu) {
		this.painelMenu = painelMenu;
	}

	public PainelDesenho getPainelDesenho() {
		return painelDesenho;
	}

	public void setPainelDesenho(PainelDesenho painelDesenho) {
		this.painelDesenho = painelDesenho;
	}

	public PainelBotoes getPainelBotoes() {
		return painelBotoes;
	}

	public void setPainelBotoes(PainelBotoes painelBotoes) {
		this.painelBotoes = painelBotoes;
	}
	
	public PainelClipping getPainelClipping() {
		return painelClipping;
	}

	public void setPainelClipping(PainelClipping painelClipping) {
		this.painelClipping = painelClipping;
	}
	
	public void setPainelSelecaoCor(PainelSelecaoCor painelSelecaoCor){
		this.painelSelecaoCor = painelSelecaoCor;
	}

	public PainelSelecaoCor getPainelSelecaoCor() {
		return painelSelecaoCor;
	}

	public void selecionarCor() {
		JFrame selecaoDeCor = new JFrame();
		selecaoDeCor.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
		selecaoDeCor.setSize(600, 270);
		selecaoDeCor.add(painelSelecaoCor);
		selecaoDeCor.setVisible(true);
	}
}